<template>
  <div class="poster_intent">
    <div class="logo_body">
      <div class="img_text">
        <img src="../../../assets/img/modules/poster/bd_01_logo.png" alt="">
        <span>国家开放大学（广州）开始招生啦</span>
      </div>
      <a class="tel_text" href="tel:4000099661"><van-icon name="phone" />400-009-9661</a>
      <div class="title_text">初中高中学历也能读大学</div>
    </div>
    <img v-lazy="imgList[0]" >
    <div class="img_bg_65">
      <img v-lazy="imgList[1]" >
    </div>
    <div class="form_body">
      <div class="item_input">
        <p>1.您目前的学历是</p>
        <van-radio-group v-model="form_01.input_01">
          <van-radio checked-color="#c9151e" name="初中">初中</van-radio>
          <van-radio checked-color="#c9151e" name="高中">高中</van-radio>
          <van-radio checked-color="#c9151e" name="中专">中专</van-radio>
          <van-radio checked-color="#c9151e" name="大专">大专</van-radio>
        </van-radio-group>
      </div>
      <div class="item_input">
        <p>2.您想考取的学历层次是</p>
        <van-radio-group v-model="form_01.input_02">
          <van-radio checked-color="#c9151e" name="专科">专科</van-radio>
          <van-radio checked-color="#c9151e" name="本科">本科</van-radio>
        </van-radio-group>
      </div>
      <div class="item_input">
        <p>3.您提升学历的原因是</p>
        <van-radio-group v-model="form_01.input_03">
          <van-radio checked-color="#c9151e" name="找工作">找工作</van-radio>
          <van-radio checked-color="#c9151e" name="入户广州">入户广州</van-radio>
          <van-radio checked-color="#c9151e" name="相亲找对象">相亲找对象</van-radio>
          <van-radio checked-color="#c9151e" name="升职加薪">升职加薪</van-radio>
          <van-radio checked-color="#c9151e" name="职称评定">职称评定</van-radio>
          <van-radio checked-color="#c9151e" name="其他用途">其他用途</van-radio>
        </van-radio-group>
      </div>
      <div class="item_input">
        <p>* 您的手机号码是</p>
        <input type="tel" v-model="form_01.input_04" pattern="^1[3456789]\d{9}$" required placeholder="请输入11位手机号">
      </div>
      <div class="item_input">
        <button>免费获取测评结果</button>
      </div>
    </div>
    <div class="user_success">
      <strong>目前已有3209人申请 ，最新申请如下：</strong>
      <swiper :options="swiperIntent" ref="swiperIntent" class="swiper_tab">
        <swiper-slide class="item_p">
          <p><em>张女士</em>     186209*****工商管理</p>
          <span>获取成功</span>
        </swiper-slide>
        <swiper-slide class="item_p">
          <p><em>张女士</em>     186209*****工商管理</p>
          <span>获取成功</span>
        </swiper-slide>
        <swiper-slide class="item_p">
          <p><em>张女士</em>     186209*****工商管理</p>
          <span>获取成功</span>
        </swiper-slide>
        <swiper-slide class="item_p">
          <p><em>张女士</em>     186209*****工商管理</p>
          <span>获取成功</span>
        </swiper-slide>
      </swiper>
    </div>
    <div class="img_bg_40">
      <img v-lazy="imgList[2]" >
    </div>
    <div class="form_body">
      <div class="item_input">
        <p>您想查询的信息是</p>
        <select v-model="form_02.input_01">
          <option value="院校专业" label="院校专业"></option>
          <option value="报考流程" label="报考流程"></option>
          <option value="免考政策" label="免考政策"></option>
          <option value="报考条件" label="报考条件"></option>
          <option value="报考时间" label="报考时间"></option>
          <option value="报考费用" label="报考费用"></option>
        </select>
      </div>
      <div class="item_input">
        <p>* 能顺利接收短信的号码是</p>
        <input type="tel" v-model="form_02.input_02" pattern="^1[3456789]\d{9}$" required placeholder="请输入11位手机号">
      </div>
      <div class="item_input">
        <button>立即查询</button>
      </div>
    </div>
    <div class="img_bg_40" style="margin: 40px 0 30px">
      <img v-lazy="imgList[3]" >
    </div>
    <div class="form_body">
      <div class="item_input">
        <p>您的意向专业是</p>
        <select v-model="form_03.input_01">
          <option value="市场营销" label="市场营销"></option>
          <option value="广告学" label="广告学"></option>
          <option value="物流管理" label="物流管理"></option>
          <option value="会计学" label="会计学"></option>
          <option value="工商管理" label="工商管理"></option>
          <option value="行政管理" label="行政管理"></option>
          <option value="学前教育" label="学前教育"></option>
          <option value="连锁经营管理" label="连锁经营管理"></option>
          <option value="广告设计与制作" label="广告设计与制作"></option>
          <option value="人力资源管理" label="人力资源管理"></option>
        </select>
      </div>
      <div class="item_input">
        <p>* 您的提升层次是</p>
        <van-radio-group v-model="form_03.input_02">
          <van-radio checked-color="#c9151e" name="专科">专科</van-radio>
          <van-radio checked-color="#c9151e" name="本科">本科</van-radio>
        </van-radio-group>
      </div>
      <div class="item_input">
        <p>* 您接收短信的手机号码是</p>
        <input type="tel" v-model="form_03.input_03" pattern="^1[3456789]\d{9}$" required placeholder="请输入11位手机号">
      </div>
      <div class="item_input">
        <button>点击领取院校专业信息</button>
      </div>
    </div>
    <img v-lazy="imgList[4]" style="margin-top: 50px">
  </div>
</template>
<script>
export default {
  name: 'poster_intent',
  components: {},
  data () {
    return {
      imgList: [
        'http://m.oucgz.cn/images/bd_01.png',
        'http://m.oucgz.cn/images/bd_02.png',
        'http://m.oucgz.cn/images/bd_03.png',
        'http://m.oucgz.cn/images/bd_04.png',
        'http://m.oucgz.cn/images/bd_05.png'
      ],
      swiperIntent: { // 最新申请幻灯片
        slidesPerView: 4,
        direction: 'vertical',
        spaceBetesPerween: 0,
        loop: true,
        autoplay: {
          delay: 2500,
          reverseDirection: true,
          disableOnInteraction: false
        }
      },
      form_01: {
        input_01: '',
        input_02: '',
        input_03: '',
        input_04: ''
      },
      form_02: {
        input_01: '院校专业',
        input_02: ''
      },
      form_03: {
        input_01: '连锁经营管理',
        input_02: '',
        input_03: ''
      }
    }
  },
  props: {},
  watch: {
    'form_01.input_04': function (newValue, oldValue) {
      this.form_01.input_04 = newValue.replace(/[^\d]/g, '').substring(0, 11)
    },
    'form_02.input_02': function (newValue, oldValue) {
      this.form_02.input_02 = newValue.replace(/[^\d]/g, '').substring(0, 11)
    },
    'form_03.input_03': function (newValue, oldValue) {
      this.form_03.input_03 = newValue.replace(/[^\d]/g, '').substring(0, 11)
    }
  },
  methods: {},
  computed: {},
  created () {
  },
  mounted () {
  },
  destroyed () {
  }
}
</script>
<style lang="scss" scoped>
  .poster_intent {
    max-width: 750px;
    margin: 0 auto;
    img {
      display: block;
      width: 100%;
      height: auto;
    }
    .logo_body{
      padding: 60px 20px 0;
      .img_text{
        display: flex;
        align-items: center;
        justify-content: center;
        img{
          width: 65px;
          height: 65px;
          margin-right: 15px;
        }
        span{
          font-weight: bold;
          font-size: 35px;
          color: #c9151e;
        }
      }
      .tel_text{
        display: block;
        text-align: center;
        font-weight: bold;
        font-size: 35px;
        color: #c9151e;
        margin: 20px 0;
      }
      .title_text{
        text-align: center;
        font-weight: bold;
        font-size: 63px;
        color: #c9151e;
        margin-bottom: 20px;
      }
    }
    .img_bg_65{
      padding: 0 65px;
    }
    .img_bg_40{
      padding: 0 40px;
    }
    .form_body{
      padding: 31px;
      .item_input{
        p{
          font-size: 30px;
          color: #c9151e;
          font-weight: 500;
        }
        input,select{
          height: 90px;
          line-height: 90px;
          border-radius: 5px;
          border: 2px solid #e3e3e3;
          font-size: 28px;
          display: block;
          width: 100%;
          padding: 0 15px;
          margin-bottom: 30px;
          &:focus:valid{
            border-color: #77c25b;
          }
          &:focus:invalid{
            border-color: #ff1220;
          }
          &::placeholder{
            font-size: 24px;
            line-height: 70px;
          }
        }
        button{
          font-size: 34px;
          color: #ffffff;
          line-height: 90px;
          border-radius: 10px;
          background-color: #c9151e;
          border: 0;
          display: block;
          width: 100%;
          margin: 60px 0 0 0;
        }
      }
    }
    .user_success{
      margin-bottom: 60px;
      strong{
        font-size: 30px;
        text-align: center;
        display: block;
        margin: 30px 0 30px;
      }
      .swiper_tab{
        margin: 31px ;
        height: 250px;
        .item_p{
          font-size: 25px;
          display: flex;
          line-height: 60px;
          justify-content: space-between;
          align-items: center;
          p{
            color: #999999;
            em{
              font-style: normal;
              width: 150px;
              display: inline-block;
            }
          }
          span{
            color: #c9151e;
          }
        }
      }
    }
  }
</style>
